<!-- $Id: editLinks.html 16 2011-02-10 02:57:39Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<load href="__PUBLIC__/Js/validator.js" />
<script language="javascript">
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("link_name","{$Think.lang.js_link_name}");
    validator.required("link_url","{$Think.lang.js_link_url}");
    validator.isNumber("link_sort","{$Think.lang.js_link_sort}");
    return validator.passed();
}
</script>
<div class="main-div">
<form action="__URL__/updateLinks" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" id="general-table">
  <tr>
    <td width="50%" class="label"><a href="javascript:showNotice('LogoNameNotic');" title="{$Think.lang.notic}">
      <img src="__PUBLIC__/Images/notice.gif" width="16" height="16" border="0" alt="{$Think.lang.notic}"></a> {$Think.lang.link_name}:</td>
    <td width="50%">
      <input type="text" name="link_name" size="40" value="{$vo.link_name}"/><span class="require-field">*</span>
      <br /><span class="notice-span" style="display:block"  id="LogoNameNotic">{$Think.lang.link_name_notic}</span>    </td>
  </tr>
  <tr>
    <td class="label"><a href="javascript:showNotice('url');" title="{$Think.lang.notic}">
      <img src="__PUBLIC__/Images/notice.gif" width="16" height="16" border="0" alt="{$Think.lang.notic}"></a> {$Think.lang.link_url}:</td>
    <td>
      <input type='text' name='link_url' size="40"  value="{$vo.link_url}" /><span class="require-field">*</span><br /><span class="notice-span" style="display:block"  id="url">{$Think.lang.link_url_notic}</span>    </td>
  </tr>
  <tr>
    <td class="label">{$Think.lang.link_sort}:</td>
    <td>
      <input type='text' name='link_sort' value="{$vo.link_sort}" size="40" /><span class="require-field">*</span>    </td>
  </tr>
  <tr>
    <td class="label">{$Think.lang.link_logo}:</td>
    <td>
      <input type='file' name='link_logo' size="40" disabled="disabled"/>    </td>
  </tr>
	<tr>
        <td class="narrow-label">{$Think.lang.link_description}:</td>
        <td><textarea name="link_description" cols="40" rows="5">{$vo.link_description}</textarea></td>
      </tr>
    <tr>
	<tr>
    <td class="label">{$Think.lang.link_visible}</td>
    <td><select name="link_visible">
	<option <eq name="vo.link_visible" value="1" >selected</eq> value="1">{$Think.lang.link_visible_1}</option>
	<option <eq name="vo.link_visible" value="0" >selected</eq> value="0">{$Think.lang.link_visible_2}</option>
	</select><span class="require-field">*</span></td>
  </tr>
    <td colspan="2" align="center">
      <input type="submit" value=" {$Think.lang.submit} " class="button" />
      <input type="reset" value=" {$Think.lang.reset} " class="button" />
      <input type="hidden" name="link_id" value="{$vo.link_id}"></td>
    </tr>
</table>
</form>
</div>
<include file="Public:pagefooter"/> 